<div style="text-align: center;">
    <img src="<?= $url_base_theme . '/img/r-bg.png' ?>" />
</div>
<form method="post" action="">
    <div style="text-align: center;">
        <div class="register">
            <table id="register-table">
                <tr>
                    <td style="width: 100px;">
                        <span class="title">
                            Họ và tên
                        </span>
                    </td>
                    <td>
                        <input type="text" id="fullname" name="fullname" class="input-register" required=""/>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <span class="title">
                            Giới tính
                        </span>
                    </td>
                    <td>
                        <input type="checkbox" class="input-register1" value="1" name="sex" checked=""/> 
                        <span class="title2">
                            Nam
                        </span>
                        <input type="checkbox" class="input-register2" value="0" name="sex"/> 
                        <span class="title2">
                            Nữ
                        </span>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <span class="title">
                            Ngày sinh
                        </span>
                    </td>
                    <td>
                        <input type="text" class="input-register" id="birthday" name="birthday"/>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <span class="title">
                            Email
                        </span>
                    </td>
                    <td>
                        <input type="text" class="input-register" id="email" name="email"/>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <span class="title">
                            Địa chỉ
                        </span>
                    </td>
                    <td>
                        <input type="text" class="input-register" id="address" name="address"/>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <span class="title">
                            Tỉnh thành
                        </span>
                    </td>
                    <td>
                        <input type="text" class="input-register" id="city" name="city"/>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <span class="title">
                            Điện thoại
                        </span>
                    </td>
                    <td>
                        <input type="number" class="input-register" id="phone" name="phone" required/>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>

                    </td>
                    <td>
                        <input type="checkbox" class="input-register4" />
                        <span class="titlex">Vui lòng chọn “tôi đã đọc và đồng ý với các điều khoản trên”</span>
                    </td>
                    <td>
                        <a href="javascript:;" id="cmdregister"><img src="<?= $url_base_theme . '/img/r.png' ?>" /></a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>
<script>
    jQuery("#cmdregister").click(function(){
        //check valide
        if(jQuery.trim(jQuery('#fullname').val()) == ""){
            alert('Vui Long nhap ho ten');
            return false;
        }else if(jQuery.trim(jQuery('#birthday').val()) == ""){
            alert("Please input birthday!");
            return false;
        }else if(jQuery.trim(jQuery('#email').val()) == ""){
            alert("Please input Email!");
            return false;
        }else if(jQuery.trim(jQuery('#address').val()) == ""){
            alert("Please input address!");
            return false;
        }else if(jQuery.trim(jQuery('#city').val()) == ""){
            alert("Please input city!");
            return false;
        }else if(jQuery.trim(jQuery('#phone').val()) == ""){
            alert("Please input phone!");
            return false;
        }
        
        
        jQuery('form').submit();
        
    })
</script>